package cn.iocoder.yudao.module.hs.controller.admin.entryorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 入库单新增/修改 Request VO")
@Data
public class EntryOrderSaveReqVO {

    @Schema(description = "入库单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19289")
    private Long id;

    @Schema(description = "入库单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String no;

    @Schema(description = "RFID编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "RFID编码不能为空")
    private String rfidCode;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String trayCode;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "2054")
    private Long warehouseId;

    @Schema(description = "操作人")
    private String operator;

    @Schema(description = "入库时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime entryTime;

}